let arr:[number,string,boolean] = [1,'234',true]

//其他数据类型
let arr1 :string[] = ['ds']
let arr2 :number[] = [12345]
let arr3 :boolean[] = [true,false]

let arr4 :{
    name:string;
    age:number;
}[]=
[{
        name:'123456',
        age:18
    },
    {
        name:'huziyu',
        age:20
    }]

let arr_list:{
    name:string
    age:18
}[]=[
    {
        name:'123456',
        age:18
    }
]

let isDine:boolean=false
let decLiteral:number=6
let user:string = 'bob'
user='123456'
console.log(user,'222222');



let str :string=''
let fun = (can:number,can2:number): number=>{
    return can+can2
}
let bol:boolean = true
let num:number = 123
let obj:{
    a:string
} = {a:"123456"}

let name1:string=`huziyu`
let age:number=37;
let sentence:string=`hello,my name is ${name1}`
console.log(sentence);

let list:number[]=[1,23,4]
let list1:Array<number>=[1,2,3]




let newArr :number[] = [11,11,234,234,55,55,66,60,21,234]

let newarr1:number[] = []
console.log(newArr);

newArr.forEach((i: number,index: number)=>{
    if(!newarr1.includes(i)){
        newarr1.push(i)
    }
})

console.log(newarr1,'123');
console.log(123456);


